home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Transport Independent Speech / SpokenSerialApp / Struct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-16  |  1.0 KB  |  51 lines  |  [TEXT/CWIE]

  1. #ifndef __STRUCT__
  2. #define __STRUCT__
  3.  
  4. #include <AppleEvents.h>
  5. #include "SpeechRecognition.h"
  6.  
  7. typedef struct LanguageModelList *LanguageModelListPtr;
  8.  
  9. struct LanguageModelList {
  10.     SRLanguageModel            theLanguage;
  11.     LanguageModelListPtr    nextLanguage;
  12.     short                    resID;
  13. };
  14.  
  15. typedef struct LanguageModelList LanguageModelList;
  16.  
  17. struct SpeechInfoStruct {
  18.     long                    ID;
  19.     SRRecognitionSystem        recogSystem;
  20.     SRRecognizer            theRecognizer;
  21.     LanguageModelListPtr    languages;
  22.     AEEventHandlerUPP        SpeechDoneUPP;
  23.     long                    attributes;
  24. };
  25.  
  26. typedef struct SpeechInfoStruct SpeechInfoStruct;
  27. typedef struct SpeechInfoStruct *SpeechInfoPtr;
  28.  
  29. struct TREEResource {
  30.     long                    flags;
  31.     OSType                    type;
  32.     long                    ID;
  33.     char                    name[1];    /* Variable length field */
  34. };
  35.  
  36. typedef struct TREEResource TREEResource;
  37. typedef struct TREEResource *TREEResourcePtr;
  38. typedef struct TREEResource **TREEResourceHandle;
  39.  
  40. struct Command {
  41.     unsigned long    type;
  42.     long            flags,
  43.                     ID;
  44. };
  45.  
  46. typedef struct Command Command;
  47. typedef struct Command *CommandPtr;
  48. typedef struct Command **CommandHdl;
  49.  
  50. #endif
  51.